package com.program.beautymakeup.domain.vo;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.Data;

import java.util.List;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2023/2/17-20:36
 **/
@Data
public class PageVO<T> {
    private long total;
    private long pages;
    private long current;
    private long size;
    private List<T> records;
    public void build(IPage iPage){
        this.setPages(iPage.getPages());
        this.setCurrent(iPage.getCurrent());
        this.setSize(iPage.getSize());
        this.setTotal(iPage.getTotal());
    }
}
